<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- The HTML 4.01 Transitional DOCTYPE declaration-->
<!-- above set at the top of the file will set     -->
<!-- the browser's rendering engine into           -->
<!-- "Quirks Mode". Replacing this declaration     -->
<!-- with a "Standards Mode" doctype is supported, -->
<!-- but may lead to some differences in layout.   -->

<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ page import="com.google.appengine.api.users.User"%>
<%@ page import="com.google.appengine.api.users.UserService"%>
<%@ page import="com.google.appengine.api.users.UserServiceFactory"%>

<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>FESP Add Class</title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<link href="style.css" rel="stylesheet" type="text/css" />
</head>

<body>
	<%
		UserService userService = UserServiceFactory.getUserService();
		User user = userService.getCurrentUser();
	%>

	<div id="masthead">
		<ul id="top_menu">
			<%
				if (user != null) {
			%>
			<li><a href="<%=userService.createLogoutURL("/index.jsp")%>">Log
					Off</a>
			</li>
			<%
				} else {
			%>
			<li><a
				href="<%=userService.createLoginURL(request.getRequestURI())%>">Log
					In</a>
			</li>
			<%
				}
			%>
			</li>
			<%
				if (user != null) {
			%>
			<li><a href="/student/statistics.jsp">Statistics</a>
			</li>
			<%
				}
			%>
			<li><a href="/student/calendar.jsp">Calendar</a>
			</li>
			<li><a href="/index.jsp">Home</a>
			</li>
		</ul>
		<div id="filler"></div>

		<%
			if (user != null) {
		%>
		<div id="user_container">
			<div id="user_info">
				<li>&nbsp;</li>
				<li>Welcome, <font color="#99b910">user</font>! <br>Modify
					your <a href="/student/settings.jsp">settings!</a><br>Last
					logged in: 00:00</li>
				<li>&nbsp;</li>
			</div>
		</div>
		<%
			}
		%>
	</div>

	<div id="page_content">

		<table>
			<tr>
				<td class="col1">

					<div class="roundcont">
						<div class="roundtop">
							<img src="/images/topl.gif" alt="" width="15" height="15"
								class="corner" style="display: none" />
						</div>
						
						<br/>
						<center><h2>Class <%= session.getAttribute("counter") %> Registration</h2></center></br>

						<form action="/addClass" method="get">
							<table align="center">
								<tr>
									<td width="200"><b>Class name</b>
									</td>
									<td><input type="text" name="name" />
									</td>
								</tr>
								<tr>
									<td>&nbsp;</td>
									<td>&nbsp;</td>
								</tr>
								<tr>
									<td><b>Class Information</b>
									</td>
									<td>&nbsp;</td>
								</tr>
								<tr>
									<td>Division (LD/UD)</td>
									<td><select name="division">
											<option value="0">Lower Division</option>
											<option value="1">Upper Division</option>
									</select>
									</td>
								</tr>
								<tr>
									<td>Grade or Pass/No Pass</td>
									<td><select name="grade">
											<option value="0">Grade</option>
											<option value="1">Pass/No Pass</option>
									</select>
									</td>
								</tr>
								<tr>
									<td>&nbsp;</td>
									<td>&nbsp;</td>
								</tr>
								<tr>
									<td><b>Enter percents (0-100%)</b>
									</td>
									<td>&nbsp;</td>
								</tr>
								<tr>
									<td>Final Exam Percent</td>
									<td><input type="text" name="final_exam_percent" />
									</td>
								</tr>
								<tr>
									<td>Current Overall Percent</td>
									<td><input type="text" name="current_overall_percent" />
									</td>
								</tr>
								<tr>
									<td>Goal Percent</td>
									<td><input type="text" name="goal_percent" />
									</td>
								</tr>
								<tr>
									<td>&nbsp;</td>
									<td>&nbsp;</td>
								</tr>
								<tr>
									<td><b>Enter hours (integer value)</b>
									</td>
									<td>&nbsp;</td>
								</tr>
								<tr>
									<td>Project Hours</td>
									<td><input type="text" name="project_hours" />
									</td>
								</tr>
								<tr>
									<td>Research Hours</td>
									<td><input type="text" name="research_hours" />
									</td>
								</tr>
								<tr>
									<td>Reading Hours</td>
									<td><input type="text" name="reading_hours" />
									</td>
								</tr>
								<tr>
									<td>Total Hours</td>
									<td><input type="text" name="total_hours" />
									</td>
								</tr>
								<tr>
									<td>&nbsp;</td>
									<td>&nbsp;</td>
								</tr>
								<tr>
									<td><b>Misc.</b>
									</td>
									<td>&nbsp;</td>
								</tr>
								<tr>
									<td>Confidence</td>
									<td><input type="text" name="confidence" />
									</td>
								</tr>
								<tr>
									<td>Finals Day</td>
									<td><input type="text" name="finals_day" />
									</td>
								</tr>
								<tr>
									<td>&nbsp;</td>
									<td>&nbsp;</td>
								</tr>
							</table>
							<table align="center" cellpadding="10px">
								<tr>
									<td>
										<input type="submit" value="Submit Class" />
									</td>
									<td>
										<input type="reset" value="Clear Fields" />
									</td>
								</tr>
							</table>
						</form>

						<div class="roundbottom">
							<img src="/images/bottoml.gif" alt="" width="15" height="15"
								class="corner" style="display: none" />
						</div>
					</div>
				</td>
			</tr>
		</table>
		
	<div id="footer">
		<p>Copyright © 2011 Eric Y. Chung. All rights reserved.</p>
	</div>
</body>
</html>